package yxy.game.pm2.bean;

/**
 * 常量类
 *
 * @ClassName Constant
 * @Author jingtao-zheng
 * @Date 2022/8/1 15:41
 * @Version 1.0
 **/
public class Constant {
    //阵营塔 -- racetowerdate表配置的id
    public static final String WEI_ID = "101";//魏国塔
    public static final String SHU_ID = "102";//蜀国塔
    public static final String WU_ID = "103";//吴国塔
    public static final String QUN_ID = "104";//群国塔
    //阵营塔 -- 接口CampTowerMessage.proto里面的LineupType枚举
    public static final int WEI = 4;//魏国塔
    public static final int SHU = 5;//蜀国塔
    public static final int WU = 6;//吴国塔
    public static final int QUN = 7;//群国塔
    //阵营塔 -- 匹配BattleType枚举
    public static final int WEI_BATTLETYPE = 23;//魏国塔
    public static final int SHU_BATTLETYPE = 24;//蜀国塔
    public static final int WU_BATTLETYPE = 25;//吴国塔
    public static final int QUN_BATTLETYPE = 26;//群国塔
    //阵营塔 -- 匹配排行榜index
    public static final int WEI_INDEX = 18;//魏国塔
    public static final int SHU_INDEX = 19;//蜀国塔
    public static final int WU_INDEX = 20;//吴国塔
    public static final int QUN_INDEX = 21;//群国塔
    //阵营塔 -- 每章20层
    public static final int CHAPTER_OF_FLOOR = 20;
    //每章满星星数
    public static final int CHAPTER_OF_FULLSTAR = 60;
    //记录多少章
    public static final int RECORD_FROOL = 3;
    //总章节186
    public static final int ALL_CHAPTER = 186;
    //每章星星奖励个数
    public static final int STAR_JL_SUM = 4;
    //发奖redis key匹配
    public static final String WEI_GUO_TA = "WEIGUOTA";//魏国塔
    public static final String SHU_GUO_TA = "SHUGUOTA";//蜀国塔
    public static final String WU_GUO_TA = "WUGUOTA";//吴国塔
    public static final String QUN_GUO_TA = "QUNGUOTA";//群国塔
    //换算四象归一id
    public static final int WEI_RACENEXUS_ID = 1;//魏国塔
    public static final int SHU_RACENEXUS_ID = 2;//蜀国塔
    public static final int WU_RACENEXUS_ID = 3;//吴国塔
    public static final int QUN_RACENEXUS_ID = 4;//群国塔
    //四象归一最高等级
    public static final int MAX_LV = 51;


    //自己队伍的站位--计算星星用
    public static final int FUL = 1;  // 左 前上
    public static final int FML = 2;  // 左 前中
    public static final int FDL = 3;  // 左 前下
    public static final int BUL = 4;  // 左 后上
    public static final int BML = 5;  // 左 后中
    public static final int BDL = 6;  // 左 后下

    public static String matchType(int key) {
        if (key == Constant.WEI) {
            return Constant.WEI_ID;
        }
        if (key == Constant.SHU) {
            return Constant.SHU_ID;
        }
        if (key == Constant.WU) {
            return Constant.WU_ID;
        }
        if (key == Constant.QUN) {
            return Constant.QUN_ID;
        }
        return null;
    }

    public static final String yyyyMMdd = "yyyy-MM-dd";


    public static final int ZERO = 0;
    public static final int ONE = 1;
    public static final int TWO = 2;
    public static final int THREE = 3;
    public static final int TEN = 10;
    public static final int EIGHTEEN = 18;
    public static final int SIXTY_FOUR = 64;

    //聊天模块
    //举报次数
    public static final int REPORT_NUMS = 2;
    //禁言天数
    public static final int BANNED_DAYS = 999;

    //寻宝活动编号
    public static final int TREASURE_HUNT = 507;

}
